package com.snu.liwei.lyl_api.service;

import com.snu.liwei.lyl_api.entity.User;
import com.snu.liwei.lyl_api.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;
    public User getUser(User user)
    {
        return userMapper.getUser(user);
    }
    public void  updateToken(User user)
    {
        userMapper.updateToken(user);
    }
    public void  UserRegister(User user)
    {
        userMapper.UserRegister(user);
    }
}
